package com.zhu.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author JoyBoy
 * @since 2022-06-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class InventoryRecordItem extends Model<InventoryRecordItem> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "recorditem_id", type = IdType.AUTO)
    private Integer recorditemId;

    private Integer recordId;

    private Integer goodsId;

    private Integer number;

    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Boolean deleted;


    @Override
    protected Serializable pkVal() {
        return this.recorditemId;
    }

}
